# -*- coding: utf-8 -*-
from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

from innervoicessite.innerword import views
urlpatterns = patterns('',
    # Example:
    # (r'^innervoicessite/', include('innervoicessite.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^admin/', include(admin.site.urls)),
    (r'md/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': 'D:/innervoicessite/media', 'show_indexes': True}),
)

urlpatterns += patterns('innervoicessite.innerword.views',
        url(r'^list$', views.ListInner()),
        url(r'^user/(?P<id>\d+)$', views.Users()),
        url(r'^innerwords/(?P<num>[A-Z0-9]{8})?$', views.Innerwords()),
        url(r'^register$', views.Register()),
        url(r'^search$', views.Search()),
        url(r'^login$', 'login'),
        url(r'^user/(?P<name>.+)$', 'findUser'),
        url(r'^feedback/(?P<num>[A-Z0-9]{8})/(?P<plus>flowers|eggs|spam)$', 'feedback'),
        url(r'^vlidatemail$', 'vlaidatemail'),
        )
